package com.sen.dto;

import java.time.LocalTime;

/**
 * 视频的每一集
 */
public class Part {
    private int id;
    private String pid;// 集号
    private String title;// 标题
    private LocalTime duration;// 时长

    private String url; // 视频文件路径

    public Part() {
    }

    public Part(String pid, String title, LocalTime duration, String url) {
        this.pid = pid;
        this.title = title;
        this.duration = duration;
        this.url = url;
    }

    @Override
    public String toString() {
        return "Part{" +
                "id=" + id +
                ", pid='" + pid + '\'' +
                ", title='" + title + '\'' +
                ", duration=" + duration +
                ", url='" + url + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public LocalTime getDuration() {
        return duration;
    }

    public void setDuration(LocalTime duration) {
        this.duration = duration;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
